package com.egg.auth.model.response.web;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * 图片验证码信息对象
 */
@Data
@ApiModel(value = "图片验证码")
public class Captcha {

    @ApiModelProperty(value = "系统是否开启验证码")
    private Boolean enabled;

    @ApiModelProperty(value = "图片验证码唯一标识")
    private String id;

    @ApiModelProperty(value = "图片验证码base64")
    private String base64;

    @ApiModelProperty(value = "image")
    private BufferedImage image;

    @ApiModelProperty(value = "验证码")
    private String code;

    @ApiModelProperty(value = "失效时间")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "失效时间 秒")
    private Long expireSeconds;


}